package com.hjc.service;

import com.hjc.dto.AssignRoleDto;
import com.hjc.dto.RoleAuthDto;
import com.hjc.entity.Result;
import com.hjc.entity.Role;
import com.hjc.page.Page;

import java.util.List;

public interface RoleService {
    public List<Role> queryAllRole();

    public void assignRole(AssignRoleDto assignRoleDto);

    public Page queryRoleByPage(Page page,Role role);

    public Result addRole(Role role);

    public Result setRoleState(Integer roleId,String roleState);

    public Result removeRoleByRoleId(Integer roleId);

    public Result setRoleDescByRoleId(Role role);

    //根据id查询权限(菜单)树的业务方法
    public List<Integer> findAuthIdListByRoleId(int roleId);

    //    添加角色权限
    public void addRoleAuth(RoleAuthDto roleAuthDto);
}
